<div class="container"  style="margin-top: 40px;">
<div class="span3"> </div>
<div class="span6">
	  <h2>Signup</h2>
	  <?php if(!$this->session->userdata('validated')){?>
	  <?php if(! is_null($message)) echo $message;?>    
      <form class="form-horizontal" action="<?php echo base_url('api/auth/signup');?>" method="post">
		  <div class="control-group">
		    <label class="control-label" for="user_account_name">Account Name</label>
		    <div class="controls">
		      <input type="text" name="user_account_name" placeholder="Account Name">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="user_password">Password</label>
		    <div class="controls">
		      <input type="password" name="user_password" placeholder="Password">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="user_name">User Name</label>
		    <div class="controls">
		      <input type="text" name="user_name" placeholder="User Name">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="user_surname">User Surname</label>
		    <div class="controls">
		      <input type="text" name="user_surname" placeholder="User Surname">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="user_email">E-Mail</label>
		    <div class="controls">
		      <input type="text" name="user_email" placeholder="@">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="user_phone">Phone</label>
		    <div class="controls">
		      <input type="text" name="user_phone" placeholder="0(543)0000000">
		    </div>
		  </div>
		  <div class="control-group">
		    <label class="control-label" for="user_birthdate">Birthdate</label>
		    <div class="controls">
		      <input type="text" id="dp1" name="user_birthdate" placeholder="Birthdate">
		    </div>
		  </div>
		<div class="control-group">
			<label class="control-label" for="sex">Sex</label>
			<div class="controls">
				<label class="radio inline">
				  <input type="radio" name="sex" id="sex" value="1" checked="">
				  Male
				</label>
				<label class="radio inline">
				  <input type="radio" name="sex" id="sex" value="2">
				  Female
				</label>
			</div>
		  </div>
<div class="control-group">
			<label class="control-label" for="role_id">Role</label>
			<div class="controls">
				<label class="radio inline">
				  <input type="radio" name="role_id" id="role_id" value="1" checked="">
				  Market
				</label>
				<label class="radio inline">
				  <input type="radio" name="role_id" id="role_id" value="2">
				  User
				</labUel>
			</div>
		  </div>
		  <div class="control-group">
		    <div class="controls">
		      <button type="submit" class="btn">Signup!</button>
		    </div>
		  </div>
		</form>
		<?php } else {?>
			<div class="alert alert-success">You already signed up.</div>
		<?php } ?>
</div>
<div class="span3"></div>
</div>
